import os
from typing import List


def get_svs_files(folder_path):
    return {
        f: os.path.join(folder_path, f)
        for f in os.listdir(folder_path)
        if f.endswith('.svs')
    }

def get_static_file_path(path: str) -> List[str] :
    folder_list = [os.path.join(path, name) for name in os.listdir(path)
                   if os.path.isdir(os.path.join(path, name))]
    return folder_list

# 通过路径得到最后一个文件夹的名称
def get_last_file_name(path: str) -> str:
    last_folder = os.path.basename(os.path.normpath(path))
    return last_folder
